package libofei.common.controller;


import java.util.HashMap;
import java.util.Map;
/** *
 * @Description Controller基类
 * @Author LIBOFEI
 * @Date 15:12 2020/5/27
 * @Version  1.0
**/
public class BaseController {

    public static String getViewPath(String path){
        return path + ".html";
    }


    public Map<String, Object> getJsonMap(boolean success, String message, Object entity) {
        HashMap json = new HashMap(4);
        json.put("success", success);
        json.put("message", message);
        json.put("entity", entity);
        return json;
    }
}
